package com.demo.service;

import com.demo.common.ServiceException;
import com.demo.entity.RoleEntity;

import java.util.List;
import java.util.Map;

/**
 * @author libo
 * @version 1.0
 * @date 2018/4/26 17:15
 */
public interface IRoleService {

    /**
     * 添加对象
     *
     * @param entity
     * @return 主键ID
     */
    Long save(RoleEntity entity) throws ServiceException;


    /**
     * 修改对象
     *
     * @param entity
     * @return
     */
    Integer update(RoleEntity entity) throws ServiceException;


    /**
     * 删除对象
     *
     * @param pkId
     * @return
     */
    Integer remove(Long pkId) throws ServiceException;


    /**
     * 获取对象
     *
     * @param pkId
     * @return
     */
    RoleEntity get(Long pkId) throws ServiceException;

    /**
     * 根据查询条件查询集合
     *
     * @return
     */
    List<RoleEntity> listByQuery(Map<String, Object> params) throws ServiceException;
}
